package com.zhuangjie.coupon.dto;

import lombok.Getter;
import lombok.Setter;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import java.util.List;

/**
 * 优惠券锁定请求输入
 */
@Getter
@Setter
public class LockCouponsDTO {
    @NotNull(message = "优惠券锁定必须关联订单id")
    private Long orderId;
    @NotEmpty(message = "请求锁定的优惠券不能为空")
    private List<Long> couponIds;
}
